package com.hyx.spring.service;

import com.hyx.spring.dao.PersonDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @Author hyx
 * @Description 测试的service
 * @Date 2024/3/10 12:25
 * @Version 1.0
 */
@Service
public class PersonService {

    @Qualifier("personDao")
    @Autowired
    private PersonDao personDao2;

    @Override
    public String toString() {
        return  personDao2.toString();
    }
}
